//
//  UIViewController+KKAdditions.m
//  KKonry
//
//  Created by Craig Siemens on 2015-06-23.
//
//

#import "ViewController+KKAdditions.h"

#ifdef KK_VIEW_CONTROLLER

@implementation KK_VIEW_CONTROLLER (KKAdditions)

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"

- (KKViewAttribute *)KK_topLayoutGuide {
    return [[KKViewAttribute alloc] initWithView:self.view item:self.topLayoutGuide layoutAttribute:NSLayoutAttributeBottom];
}
- (KKViewAttribute *)KK_topLayoutGuideTop {
    return [[KKViewAttribute alloc] initWithView:self.view item:self.topLayoutGuide layoutAttribute:NSLayoutAttributeTop];
}
- (KKViewAttribute *)KK_topLayoutGuideBottom {
    return [[KKViewAttribute alloc] initWithView:self.view item:self.topLayoutGuide layoutAttribute:NSLayoutAttributeBottom];
}

- (KKViewAttribute *)KK_bottomLayoutGuide {
    return [[KKViewAttribute alloc] initWithView:self.view item:self.bottomLayoutGuide layoutAttribute:NSLayoutAttributeTop];
}
- (KKViewAttribute *)KK_bottomLayoutGuideTop {
    return [[KKViewAttribute alloc] initWithView:self.view item:self.bottomLayoutGuide layoutAttribute:NSLayoutAttributeTop];
}
- (KKViewAttribute *)KK_bottomLayoutGuideBottom {
    return [[KKViewAttribute alloc] initWithView:self.view item:self.bottomLayoutGuide layoutAttribute:NSLayoutAttributeBottom];
}

#pragma clang diagnostic pop

@end

#endif
